/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021.
 * Description: provide enable of rtos improve perf user backtrace feature
 * Author: chenzechuan
 * Create: 2021-7-20
 */

#ifndef __RTOS_PERF_USER_BACKSTRACE_HEAD_H_
#define __RTOS_PERF_USER_BACKSTRACE_HEAD_H_

#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/spinlock.h>

/* A flag to mark whether rtos_perf_user_backtrace was enabled or not. */
extern unsigned int improve_perf_user_backtrace_enable;

extern rwlock_t improve_perf_user_backtrace_lock;

#endif
